package com.dstation.service.interf;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dstation.domain.ClassificationInfo;
import com.dstation.domain.VideoInfo;

import java.util.List;

public interface IClassificationService {
    boolean addClassification( ClassificationInfo classificationInfo);

    boolean findIsClassificationNameRepeat(String classificationName);

    boolean alterClassification(ClassificationInfo classificationInfo);

    boolean dropClassification(long classificationInfoId);

    List<ClassificationInfo> findAllChildClassification();

    List<ClassificationInfo> findClassificationByParentId(int parentId);

    IPage<ClassificationInfo> findClassification(String search, Page page);

    boolean findIsHavePreId(Long preClassificationId);

    Long findIdByName(String oldName);

    List<ClassificationInfo> findAllClassification();
}
